<template>
    <div class="picture">
        <!-- <mt-header :title="item.name">
            <router-link to="/" slot="left">
                <mt-button icon="back"></mt-button>
            </router-link>
        </mt-header> -->
        <div v-if="item.content" class="img-box">
            <div v-if="imgnum">{{item.content}}</div>
            <img v-else :src="item.content" alt="">
        </div>
        <div v-else style=" text-align: center;padding-top:20px;">
            暂无数据
        </div>
    </div>
</template>

<script>
export default {
    data(){
        return{
            item:'',//页面展示信息
            imgnum:false,
        }
    },
    mounted(){
        this.item=this.$route.query.item
        this.imgnum=this.item.content.indexOf('https://') == -1
        console.log(766876886,this.item,this.imgnum)
    },
    methods:{

    },
    watch:{
        
    }
}
</script>

<style scoped>
.picture{
    text-align: center;
    background: #f7f7f8;
    min-height: 100vh;
}
.img-box{
    width: 96%;
    margin: 0 auto;
    margin-top: .15rem;
}
.img-box img{
    width: 100%;
}
</style>